import { defineNuxtConfig } from 'nuxt3'

// https://v3.nuxtjs.org/docs/directory-structure/nuxt.config
export default defineNuxtConfig({
    ssr:true,
    // buildDir: 'nuxt-build',
    publicRuntimeConfig: {
        baseURL: process.env.BASE_URL || 'http://crmebc.jishu.xhfiber.cn'
    },
    meta: {
        meta: [
          // <meta name="viewport" content="width=device-width, initial-scale=1">
          { name: 'viewport', content: 'width=device-width, initial-scale=2' }
        ],
        script: [
          // <script src="https://myawesome-lib.js"></script>
          // { src: 'https://awesome-lib.js' }
        ],
        link: [
          // <link rel="stylesheet" href="https://myawesome-lib.css">
          // { rel: 'stylesheet', href: '' }
        ],
        // please note that this is an area that is likely to change
        style: [
          // <style type="text/css">:root { color: red }</style>
          { children: ':root { color: red }', type: 'text/css' }
        ]
    },
    serverMiddleware: [
      // Will register file from project server-middleware directory to handle /server-middleware/* requires
      { path: '/server/middleware', handler: '~/server/middleware/index.js' }
    ]
})
